package com.ld.wms.business.material.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ld.wms.business.material.mapper.SupplierMapper;
import com.ld.wms.business.material.model.SupplierModel;
import com.ld.wms.business.material.service.SupplierService;
import com.ld.wms.business.material.vo.resp.SupplierRespVo;
import com.ld.wms.common.vo.GenerateListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 供应商(厂家) 服务实现类
 * </p>
 *
 * @author wangfeng
 * @since 2025-02-25
 */
@Service
public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, SupplierModel> implements SupplierService {

    @Autowired
    private SupplierMapper supplierMapper;

    @Override
    public GenerateListVo<SupplierRespVo> getAllList() {
        List<SupplierRespVo> supplierRespVoList = supplierMapper.selectAllList();
        return new GenerateListVo<>(supplierRespVoList);
    }
}
